Hi all, |
Re: Executing DXL from another DXL script
There may be hope with the OLE commands runFile and runStr but I don't do that sorry.
string NameDxlFile = "c:\MyDxl\MySelectedScript.dxl"
string DxlCode = readFile(NameDxlFile)
if (null DxlCode) {no such file or its empty; return}
string ErrMess = checkDXL(DxlCode)
if (!null ErrMess) {print NameDxlFile and ErrMess; return} // Interpret errors
string Results = eval_(DxlCode)
if (!null Results) process Results from the executed code; need to parse for execution errors
Buffer bufDxlCode bufDxlCode += "string NameFolderCurrent = " fullName(current Folder) "\n" bufDxlCode += "string TypeOfModules = " some string indicating type, perhaps "Requirement" "\n" bufDxlCode += DxlCodeFromFile // from above string DxlCodeToRun = stringof(bufDxlCode) delete(bufDxlCode) ...
|
Re: Executing DXL from another DXL script llandale - Mon Nov 29 10:39:52 EST 2010
There may be hope with the OLE commands runFile and runStr but I don't do that sorry.
string NameDxlFile = "c:\MyDxl\MySelectedScript.dxl"
string DxlCode = readFile(NameDxlFile)
if (null DxlCode) {no such file or its empty; return}
string ErrMess = checkDXL(DxlCode)
if (!null ErrMess) {print NameDxlFile and ErrMess; return} // Interpret errors
string Results = eval_(DxlCode)
if (!null Results) process Results from the executed code; need to parse for execution errors
Buffer bufDxlCode bufDxlCode += "string NameFolderCurrent = " fullName(current Folder) "\n" bufDxlCode += "string TypeOfModules = " some string indicating type, perhaps "Requirement" "\n" bufDxlCode += DxlCodeFromFile // from above string DxlCodeToRun = stringof(bufDxlCode) delete(bufDxlCode) ...
David |